﻿// This software is the confidential and proprietary information of NetBay.
// Such confidential information should not be disclosed.
// NetBay copyright(c) 2012

#region

using System;
using Rio.Workflow.Runtime.Enums;

#endregion

namespace Rio.Workflow.Runtime.Events
{
    public delegate void WorkflowRuntimeEventHandler(object sender, WorkflowRuntimeEventArgs args);

    public class WorkflowRuntimeEventArgs : EventArgs
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowRuntimeEventArgs" /> class.
        /// </summary>
        /// <param name="state">The state.</param>
        public WorkflowRuntimeEventArgs(RuntimeState state)
        {
            State = state;
        }

        #endregion

        #region Instance Properties

        /// <summary>
        /// Gets or sets the state.
        /// </summary>
        /// <value>The state.</value>
        public RuntimeState State { get; internal set; }

        #endregion
    }
}